#include "udf_cfg.h"

#if ( ENABLE_UDF05 > 0 && !defined(UDP_SUB_PROJECT) && !defined(UDT_SUB_PROJECT) && (defined(UDF05_SUB_PROJECT) || defined(UDX_SUB_PROJECT)) )
#define APP_DEMO_ENABLE
#include "app.h"

#if 0
#elif DEMO_CFG == DEMO_CFG_RAMAPP_UART_ISP_SUPPORT
#include "../Demo_RAMAPP_UART_ISP_SUPPORT/udsf_demo_ramapp_uart_isp_support.c"
int udf05_udf_handle( void )
{
	return udsf_demo_ramapp_uart_isp_support();
}
#elif DEMO_CFG == DEMO_CFG_RAMAPP
#include "../Demo_RAMAPP/udsf_demo_ramapp.c"
int udf05_udf_handle( void )
{
	return udsf_demo_ramapp();
}
#elif DEMO_CFG == DEMO_CFG_RAMAPP_DUAL_UDF
#include "../Demo_RAMAPP_DUAL_UDF/udsf_demo_ramapp_dual_udf.c"
int udf05_udf_handle( void )
{
	return udsf_demo_ramapp_DUAL_UDF_udf05();
}
#elif DEMO_CFG == DEMO_CFG_RADAR_APP_SAMPLE
#include "../Demo_RADAR_APP_SAMPLE/udsf_demo_radar_app_sample.c"
int udf05_udf_handle( void )
{
	return udsf_demo_radar_app_sample();
}
#elif DEMO_CFG == DEMO_CFG_RADAR_APP_HP_TRACE
#include "../Demo_RADAR_APP_HP_TRACE/udsf_demo_radar_app_hp_trace.c"
int udf05_udf_handle( void )
{
	return udsf_demo_radar_app_hp_trace_udf05_03();
}
#elif DEMO_CFG == DEMO_CFG_RADAR_APP_LP_TRIGGER
#include "../Demo_RADAR_APP_LP_TRIGGER/udsf_demo_radar_app_lp_trigger.c"
int udf05_udf_handle( void )
{
	return udsf_demo_radar_app_lp_trigger_main();
}
#elif DEMO_CFG == DEMO_CFG_RADAR_APP_LP_TRIGGER_OUTDOOR
#include "../Demo_RADAR_APP_LP_TRIGGER_OUTDOOR/udsf_demo_radar_app_lp_trigger_outdoor.c"
int udf05_udf_handle( void )
{
	return udsf_demo_radar_app_lp_trigger_outdoor_main();
}
#elif DEMO_CFG == DEMO_CFG_RADAR_APP_TOILET
int udf05_udf_handle( void )
{
	return udsf_demo_radar_app_toilet_udf05();
}
#elif DEMO_CFG == DEMO_CFG_RADAR_APP_LPW
int udf05_udf_handle( void )
{
	return udsf_demo_radar_app_lpw();
}
#elif DEMO_CFG == DEMO_CFG_APP_DUAL
#include "../Demo_APP_DUAL/udsf_demo_app_dual.c"
int udf05_udf_handle( void )
{
	return udsf_demo_app_dual_main();
}
#elif DEMO_CFG == DEMO_CFG_APP_DUAL_UDF_AT_SRAM
#include "../Demo_APP_DUAL_UDF_AT_SRAM/udsf_demo_app_dual_udf_at_sram.c"
int udf05_udf_handle( void )
{
	return udsf_demo_app_dual_udf_at_sram_udf05();
}
#elif DEMO_CFG == DEMO_CFG_APP_OPT_DATA
#include "../Demo_APP_OPT_DATA/udsf_demo_app_opt_data.c"
int udf05_udf_handle( void )
{
	return udsf_demo_app_opt_data();
}
#elif DEMO_CFG == DEMO_CFG_APP_SECURE
#include "../Demo_APP_SECURE/udsf_demo_app_secure.c"
int udf05_udf_handle( void )
{
	return udsf_demo_app_secure();
}
#elif DEMO_CFG == DEMO_CFG_INNER_APP
int udf05_udf_handle( void )
{
	return udsf_demo_inner_app();
}
#elif DEMO_CFG == DEMO_CFG_INNER_APP_DUAL
int udf05_udf_handle( void )
{
#define USE_APP0

#if defined(USE_APP0)
	return udsf_demo_inner_app_dual_app0();
#else
	return udsf_demo_inner_app_dual_app1();
#endif

#if defined(USE_APP0)
#undef USE_APP0
#endif
}
#elif DEMO_CFG == DEMO_CFG_RADAR_60G_APP_SAMPLE
int udf05_udf_handle( void )
{
	return udsf_demo_radar_60g_app_sample();
}
#else
#error "udf05 no demo"
#endif

#endif
